export const fillterRouter = (allRouter,userInfo)=>{
    // console.log(allRouter);
    // console.log(userInfo);
    let res = allRouter.filter(item=>{
        return item.meta&&item.meta.auth.includes(userInfo)
    })

    res.length && res.map(v=>{
        if(v.children){
            v.children = fillterRouter(v.children,userInfo)
        }
        return v
    })
    return res
}